<!DOCTYPE html>
<html>
    <head>
        <title>CP</title>
    </head>
    <body>
        <div style="text-align: center;">
            <h1>
                <b id='show' style="color:red;"></b>
                <b id='blue' style='color:blue;margin-left: 30px;'></b>
            </h1>
            <div onselectstart="return false;" onclick="Run()" style="margin:0 auto;width: 200px;height: 30px;line-height:30px;text-align: center;border:1px solid #000;color: #000;cursor: pointer;">随机机选</div>
        </div>

    </body>
    <script>
        Run = function(){
            let num=['01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33'];
            let num2=['01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16'];
            
            let chooseNum=[];

            for(let i=0;i<6;i++){
                    let arr =num.splice(Math.floor(Math.random() * num.length),1);
                    chooseNum.push(arr[0]);
            }
            let blue=num2.splice(Math.floor(Math.random() * 16),1);
            document.getElementById('show').innerHTML=chooseNum;
            document.getElementById('blue').innerHTML=blue;
        }
        window.onload=Run()

    </script>
</html>